/*
 * @Descripttion:app常量类
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-21 20:35:15
 */

import Dile_StoreAction from "@/utils/cache/store";

export default class Common_Constants {
  //菜单映射
  static sideBarMap = {
    //主页
    homePage: "equipDashboard",
    //主页地址
    homePageHref: "dashboardManage/factoryDashboard/equipDashboard/index",
  };
  /**
   * @Author: xzh
   * @Descripttion: 固定模块
   * @Param:
   */
  static fixModuleArr = [
    "dashboardManage",
    "factoryDashboard",
    this.sideBarMap.homePage,
  ];
  /**
   * @Author: xzh
   * @Descripttion:匹配前缀
   * @Param:
   */
  static matchPrefix = "/src/views";
  /**
   * @Author: xzh
   * @Descripttion:语言key
   * @Param:
   */
  static languageKey = () => "title" + Dile_StoreAction.getLanguage().suffix;
  /**
   * @Author: xzh
   * @Descripttion:模板地址映射
   * @Param:
   */
  static modulesMap = import.meta.glob("/src/views/**/*.vue");

  /**
   * @Author: xzh
   * @Descripttion:无界子应用标记
   * @Param:
   */
  static wujieSubKey = "dile-xxx";
}
